package oop多态作业;

public class TestPtinter {
    public static void main(String[] args) {
        Printer printer;
        printer=new DotMatrixPrinter("针式打印机",1002.45);
        printer.print();
        printer=new  InkpetPrinter("喷墨打印机",4522.27);
        printer.print();
        printer=new LaserPtinter("激光打印机",10052.68);
        printer.print();
    }
}
